<?php   // $Id: refu_devis_suite.php 175 2008-05-03 16:52:24Z pcoustillas $ ?>
<?php   
/*Copyright (C) 2003-2004 Guy Hendrickx
Licensed under the terms of the GNU  General Public License:http://www.opensource.org/licenses/gpl-license.php
File Authors:Guy Hendrickx
Modification : Pierre Coustillas*/

$type_verif="devis"; //pour vérifier que l'utisateur à le droit de refuser ce devis
$num_doc=$_POST['num_dev']; //pour vérifier que l'utisateur à le droit de refuser ce devis
require_once(dirname(__FILE__) ."/verif_client.php");
require_once("../include/config/common.php");


$num_dev=isset($_POST['num_dev'])?$_POST['num_dev']:"";
$login=isset($_POST['login'])?$_POST['login']:"";
$message=isset($_POST['message'])?$_POST['message']:"";
$sql2 = "UPDATE ${tblpref}devis SET resu='per' WHERE num_dev=$num_dev";
mysql_query($sql2) or die("Erreur SQL2 !<br/>$sql2<br/>" . mysql_error());

/*
echo "$lang_de_per";
$from = "$mail" ;
$to = "$mail";
$subject = "$lang_de_num $num_dev $lang_mail_ref" ;
$header = 'From: '.$from."\n"
 .'MIME-Version: 1.0'."\n"
 .'Content-Type: text/html; charset= ISO-8859-1'."\n"
 .'Content-Transfer-Encoding: 7bit'."\n\n";

mail($to,$subject,$message,$header);
*/

header("Location: client.php");

?>